﻿using System;

namespace VIT.Web.Modules.ScrollNews
{
    public partial class ScrollNews : VIT.Web.UI.VITModule
    {
        public int height = 200;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                height = int.Parse(Params["Height"]);

                ScrollNewsProvider fnp = new ScrollNewsProvider();
                fnp.LanguageId = Session["language"].ToString();
                rpt.DataSource = fnp.loadTop(Params, ref height);
                rpt.DataBind();
            }
        }
    }
}